package 华为机试;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;

public class HJ4_字符串分割 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        int index = 0;
        while(index < str.length()) {
            StringBuilder sb = new StringBuilder();
            for(int i = 0; i < 8; i++) {
                if(index < str.length()) {
                    sb.append(str.charAt(index));
                    index++;
                } else {
                    sb.append('0');
                }
            }
            System.out.println(sb.toString());
        }

    }
}
